//
//  KZDownLineView.m
//  kangzhipifuyisheng
//
//  Created by 唐开江 on 15/6/1.
//  Copyright (c) 2015年 KangZhi. All rights reserved.
//

#import "KZDownLineView.h"
@interface KZDownLineView()


@property (nonatomic,weak)UIView * downLine;
@end

@implementation KZDownLineView

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    [self setAttribute];
    
}
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        [self setAttribute];
    }
    return self;
}
- (void)setAttribute
{
    
    self.width  = screenWidth;
    UIView * downLine = [[UIView alloc]initWithFrame:CGRectMake(0, self.height-KZDownLineViewLineHeigth , screenWidth, KZDownLineViewLineHeigth)];
    downLine.backgroundColor = [UIColor hexFloatColor:KZDownLineViewLineColor];
    self.downLine = downLine;
    [self addSubview:downLine];
    
    
}
- (void)layoutSubviews
{
    self.downLine.width = screenWidth;
}



@end
